package itheime.com.fileDemo;

import java.io.File;

public class Test1 {
    public static void main(String[] args) {
//        method01();
//        method();
    File file = new File("E:\\itheima001\\a.txt");
        boolean result = file.delete();
        System.out.println(result);
    }

    private static void method() {
        File file = new File("E:\\itheima01");
        boolean result = file.delete();
        System.out.println(result);
    }

    private static void method01() {
        File file = new File("E:\\itheima01\\a.txt" );
        boolean result = file.delete();
        System.out.println(result);
    }
}
